package cn.moningxi.service.impl;

import cn.moningxi.bean.GGoodsBrand;
import cn.moningxi.mapper.GGoodsBrandMapper;
import cn.moningxi.service.GGoodsBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public class GGoodsBrandServiceImpl implements GGoodsBrandService {
    @Autowired
    GGoodsBrandMapper gGoodsBrandMapper;

    /**
     * 前台获取热门品牌
     *
     * @return
     */
    @Override
    public List<GGoodsBrand> getHotList() {
        return gGoodsBrandMapper.getHotList();
    }

    /**
     * 根据分类id查询品牌
     *
     * @param categoryId
     * @return
     */
    @Override
    public List<GGoodsBrand> getListByCId(Integer categoryId) {
        return gGoodsBrandMapper.getListByCId(categoryId);
    }

    @Override
    public List<GGoodsBrand> getListByListCId(Set<String> categoryIds) {
        return gGoodsBrandMapper.getListByListCId(categoryIds);
    }
}
